package org.brisling.mobile.config;

import java.security.Key;
import java.security.PublicKey;

import org.brisling.base.domain.RetDomain;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 
 * <p>Title: MDomain</p>
 * <p>Description: 移动端返回对象</p>
 * <p>Company: tongking</p>
 * @author jackson wang
 * @since 1.0
 * @version 1.0
 * @date 2017年5月16日 下午11:40:09
 */
public class MDomain extends RetDomain{

	//公钥
	private String p;
	
	//密钥对代码
	private String c;
	
	//单条记录对象
	private Object data;
	//解密数据
	@JsonIgnore
	private String decrptData;
	
	private String module;
	
	private String method;

	public MDomain(){
		super();
		this.setStatus("success");
	}
	public MDomain(String pk,String keycode){
		super();
		this.p = pk;
		this.c = keycode;
	}

	public MDomain(String module,String method,Object data){
		super();
		this.module = module;
		this.method = method;
		this.data = data;
	}
	public String getP() {
		return p;
	}

	public void setP(String p) {
		this.p = p;
	}

	public String getC() {
		return c;
	}

	public void setC(String c) {
		this.c = c;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public String getDecrptData() {
		return decrptData;
	}

	public void setDecrptData(String decrptData) {
		this.decrptData = decrptData;
	}
	public String getModule() {
		return module;
	}
	public void setModule(String module) {
		this.module = module;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	
	
	
}
